package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.mapper.NoxianxingMapper;

import com.ruoyi.system.service.INoxianxingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.system.domain.Noxianxing;

import com.ruoyi.common.support.Convert;

/**
 * 不限行规则 服务层实现
 * 
 * @author ruoyi
 * @date 2019-07-30
 */
@Service
public class NoxianxingServiceImpl implements INoxianxingService
{
	@Autowired
	private NoxianxingMapper noxianxingMapper;

	/**
     * 查询不限行规则信息
     * 
     * @param noxianxingId 不限行规则ID
     * @return 不限行规则信息
     */
    @Override
	public Noxianxing selectNoxianxingById(Integer noxianxingId)
	{
	    return noxianxingMapper.selectNoxianxingById(noxianxingId);
	}
	
	/**
     * 查询不限行规则列表
     * 
     * @param noxianxing 不限行规则信息
     * @return 不限行规则集合
     */
	@Override
	public List<Noxianxing> selectNoxianxingList(Noxianxing noxianxing)
	{
	    return noxianxingMapper.selectNoxianxingList(noxianxing);
	}
	
    /**
     * 新增不限行规则
     * 
     * @param noxianxing 不限行规则信息
     * @return 结果
     */
	@Override
	public int insertNoxianxing(Noxianxing noxianxing)
	{
	    return noxianxingMapper.insertNoxianxing(noxianxing);
	}
	
	/**
     * 修改不限行规则
     * 
     * @param noxianxing 不限行规则信息
     * @return 结果
     */
	@Override
	public int updateNoxianxing(Noxianxing noxianxing)
	{
	    return noxianxingMapper.updateNoxianxing(noxianxing);
	}

	/**
     * 删除不限行规则对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteNoxianxingByIds(String ids)
	{
		return noxianxingMapper.deleteNoxianxingByIds(Convert.toStrArray(ids));
	}
	
}
